<?php

Class Musuarios extends CI_Model {

    function canLogin($login, $password) {
        $this->db->select('idCliente');
        $this->db->from('usuario');
        $this->db->where('login = "' . $login . '"');
        $this->db->where('password = "' . md5($password) . '"');
        return $this->db->get()->result();
    }

}

?>